﻿var me = this,
    vm = me.lookupViewModel();

Ext.require([
    'PAI.ux.window.selection.SingleSelectionWin',
    'PAI.ux.panel.selection.OrgEmpSelectionComp'
], function () {
    Ext.create({
        title: '选择用户',
        xtype: 'singleselectionwin',
        modal: true,
        isMulti: false,
        selectType: 'orgempselection',
        autoShow: true,
        listeners: {
            'selectionchange': function (win, selections) {
                if (!Ext.isEmpty(selections)) {
                    vm.set('NebulogyForm.ApproversSelection.others.FinanceJLRC', selections[0].id);
                    vm.set('NebulogyForm.ApproversSelection.FinanceAnalystOwnerJLRC', selections[0].empDisplayName);
                }
            }
        }
    });
}, me);


